//将路径转换为路由表
import { RouteRecordRaw } from "vue-router";
// import mainPaths from "./constantRouterMap";
let mainPaths = {
  // "/login2":{
  //       path: "/login2",
  //       component: () => import("@theme/views/error-page/401.vue"),
  //       meta: {
  //         hidden: true,
  //         title: "胡修乱改",
  //         icon:"",
  //         roles:["guest"]
  //       }
  //     },
};
import themePaths from "./themeRouter";

let paths = {...mainPaths,...themePaths};
let arr = [];
for(let k in paths){
  arr.push(paths[k]);
}

const routes: Array<RouteRecordRaw> = arr;
export default routes;
